package com.society.sgsc.entities;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * sgsc
 * com.society.sgsc.entities
 * 字典详情类
 *
 * @author 尘心
 * @date 2025/3/14 上午 09:58
 */

public class DictItem implements Serializable {
    private Integer id;//字典编码
    private Integer dictType; // 字典类型，关联字典管理
    private String dictTag;//字典标签
    private String dictVal;//字典键值
    private Integer dictOrder;//字典排序
    private Integer dictStatus;//字典状态
    private String dictMark;//备注
    private String createBy;//创建人
    private LocalDateTime createTime;//创建时间
    private String updateBy;//更新时间
    private LocalDateTime updateTime;//更新时间
    private Integer version;//乐观锁

    public DictItem() {
    }

    public DictItem(Integer id, Integer dictType, String dictTag, String dictVal, Integer dictOrder, Integer dictStatus, String dictMark, String createBy, LocalDateTime createTime, String updateBy, LocalDateTime updateTime, Integer version) {
        this.id = id;
        this.dictType = dictType;
        this.dictTag = dictTag;
        this.dictVal = dictVal;
        this.dictOrder = dictOrder;
        this.dictStatus = dictStatus;
        this.dictMark = dictMark;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.version = version;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDictType() {
        return dictType;
    }

    public void setDictType(Integer dictType) {
        this.dictType = dictType;
    }

    public String getDictTag() {
        return dictTag;
    }

    public void setDictTag(String dictTag) {
        this.dictTag = dictTag;
    }

    public String getDictVal() {
        return dictVal;
    }

    public void setDictVal(String dictVal) {
        this.dictVal = dictVal;
    }

    public Integer getDictOrder() {
        return dictOrder;
    }

    public void setDictOrder(Integer dictOrder) {
        this.dictOrder = dictOrder;
    }

    public Integer getDictStatus() {
        return dictStatus;
    }

    public void setDictStatus(Integer dictStatus) {
        this.dictStatus = dictStatus;
    }

    public String getDictMark() {
        return dictMark;
    }

    public void setDictMark(String dictMark) {
        this.dictMark = dictMark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "DictItem{" +
                "id=" + id +
                ", dictType=" + dictType +
                ", dictTag='" + dictTag + '\'' +
                ", dictVal='" + dictVal + '\'' +
                ", dictOrder=" + dictOrder +
                ", dictStatus=" + dictStatus +
                ", dictMark='" + dictMark + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", version=" + version +
                '}';
    }
}
